﻿namespace ShikijuHome.Controllers
{
    using System.Web.Mvc;
    using ShikijuHome.Models;

    public class ProjectController : Controller
    {
        public ActionResult Index()
        {
            var itemTable = new Projects();
            var projects = itemTable.All();
            return View(projects);
        }

        public ActionResult Details(int id)
        {
            var itemTable = new Projects();
            var project = itemTable.Single(where: "id = @0", args: id);
            return View(project);
        }
    }
}
